-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): Add note to secret and variable #151
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit afb4506. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 3 targetsSent with 💌 from NxCloud. |
PR Description updated to latest commit (e9c9ac2) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #151 +/- ##
============================================
+ Coverage 62.20% 94.28% +32.07%
============================================
Files 76 83 +7
Lines 1503 1575 +72
Branches 260 260
============================================
+ Hits 935 1485 +550
+ Misses 568 90 -478
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
PR Review(Review updated until commit afb4506)
Code feedback:
✨ Review tool usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
Quality Gate passedIssues Measures |
/review |
Persistent review updated to latest commit afb4506 |
## [1.3.0](v1.2.0...v1.3.0) (2024-05-12) ### 🚀 Features * Add approval support ([#158](#158)) ([e09ae60](e09ae60)) * **api:** Add configuration live update support ([#181](#181)) ([f7d6684](f7d6684)) * **api:** Add feature to export data of a workspace ([#152](#152)) ([46833aa](46833aa)) * **api:** Add Integration support ([#203](#203)) ([f1ae87e](f1ae87e)) * **api:** Add note to [secure] and variable ([#151](#151)) ([2e62351](2e62351)) * **api:** Add OAuth redirection and polished authentication ([#212](#212)) ([d2968bc](d2968bc)) * **api:** Add support for storing and managing variables ([#149](#149)) ([963a8ae](963a8ae)) * **api:** Added GitLab OAuth ([#188](#188)) ([4d3bbe4](4d3bbe4)) * **api:** Added validation for reason field ([#190](#190)) ([90b8ff2](90b8ff2)) * **api:** Create default workspace on user's creation ([#182](#182)) ([3dc0c4c](3dc0c4c)) * **api:** Reading `port` Dynamically ([#170](#170)) ([fd46e3e](fd46e3e)) * **auth:** Add Google OAuth ([#156](#156)) ([cf387ea](cf387ea)) * **web:** Added waitlist ([#168](#168)) ([1084c77](1084c77)) * **web:** Landing revamp ([#165](#165)) ([0bc723b](0bc723b)) ### 🐛 Bug Fixes * **web:** alignment issue in “Collaboration made easy” section ([#178](#178)) ([df5ca75](df5ca75)) * **workspace:** delete duplicate tailwind config ([99d922a](99d922a)) ### 📚 Documentation * add contributor list ([f37569a](f37569a)) * Add integration docs ([#204](#204)) ([406ddb7](406ddb7)) * Added integration docs to gitbook summary ([ab37530](ab37530)) * **api:** Add swagger docs of API key controller ([#167](#167)) ([2910476](2910476)) * **api:** Add swagger docs of User Controller ([#166](#166)) ([fd59522](fd59522)) * fix typo in environment-variables.md ([#163](#163)) ([48294c9](48294c9)) * Remove supabase from docs ([#169](#169)) ([eddbce8](eddbce8)) * **setup:** replace NX with Turbo in setup instructions ([#175](#175)) ([af8a460](af8a460)) * Update README.md ([b59f16b](b59f16b)) * Update running-the-api.md ([177dbbf](177dbbf)) * Update running-the-api.md ([#193](#193)) ([3d5bcac](3d5bcac)) ### 🔧 Miscellaneous Chores * Added lockfile ([60a3b9b](60a3b9b)) * Added lockfile ([6bb512c](6bb512c)) * **api:** Added type inference and runtime validation to `process.env` ([#200](#200)) ([249e07d](249e07d)) * **api:** Fixed prisma script env errors ([#209](#209)) ([8762354](8762354)) * **API:** Refactor authority check functions in API ([#189](#189)) ([e9d710d](e9d710d)) * **api:** Refactor user e2e tests ([b38d45a](b38d45a)) * **ci:** Disabled api stage release ([97877c4](97877c4)) * **ci:** Update stage deployment config ([868a6a1](868a6a1)) * **codecov:** update api-e2e project coverage ([1e90d7e](1e90d7e)) * **dockerfile:** Fixed web dockerfile ([6134bb2](6134bb2)) * **docker:** Optimized web Dockerfile to reduct image size ([#173](#173)) ([444286a](444286a)) * **release:** Downgraded package version ([c173fee](c173fee)) * **release:** Fix failing release ([#213](#213)) ([40f64f3](40f64f3)) * **release:** Install pnpm ([1081bea](1081bea)) * **release:** Updated release commit ([b8958e7](b8958e7)) * **release:** Updated release commit ([e270eb8](e270eb8)) * Update deprecated husky Install command ([#202](#202)) ([e61102c](e61102c)) * Upgrade @million/lint from 0.0.66 to 0.0.73 ([#172](#172)) ([dd43ed9](dd43ed9)) * **web:** Updated fly memory config ([4debc66](4debc66)) ### 🔨 Code Refactoring * **api:** Made events central to workspace ([#159](#159)) ([9bc00ae](9bc00ae)) * **api:** Migrated to cookie based authentication ([#206](#206)) ([ad6911f](ad6911f)) * **monorepo:** Migrate from nx to turbo ([#153](#153)) ([88b4b00](88b4b00))
🎉 This PR is included in version 1.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
User description
Description
Add an optional
note
field tovariable
andsecret
Type
enhancement
Description
getDefaultEnvironmentOfProject
function that retrieves the default environment of a project based on its IDnote
field to the object passed tocreateEvent
functionnote
field toCreateSecret
classnote
field to secret endpointsnote
field to the object passed tothis.prisma.secret.create
function inSecretService
note
field to the object passed tothis.prisma.secret.update
function inSecretService
note
field toCreateVariable
classnote
field to variable endpointsnote
field to the object passed tothis.prisma.variable.create
function inVariableService
note
field to the object passed tothis.prisma.variable.update
function inVariableService
Secret
andVariable
tables to include anote
columnnote
field to theSecret
model in the Prisma schemanote
field to theVariable
model in the Prisma schemaChanges walkthrough
10 files
get-default-project-environment.ts
Add `getDefaultEnvironmentOfProject` function
apps/api/src/common/get-default-project-environment.ts
Environment
,PrismaClient
, andProject
from@prisma/client
getDefaultEnvironmentOfProject
function that retrieves the defaultenvironment of a project based on its ID
event.e2e.spec.ts
Add `note` field to `createEvent` function
apps/api/src/event/event.e2e.spec.ts
note
field to the object passed tocreateEvent
functioncreate.secret.ts
Add `note` field to `CreateSecret` class
apps/api/src/secret/dto/create.secret/create.secret.ts
note
field toCreateSecret
classsecret.e2e.spec.ts
Add `note` field to secret endpoints
apps/api/src/secret/secret.e2e.spec.ts
note
field to the object passed to/secret
endpointnote
field in the response of/secret
endpointnote
field to the object passed to/secret/:id
endpointnote
field in the response of/secret/:id
endpoint
note
field to the object passed to/secret/:id
endpoint forupdating a secret
note
field in the response of/secret/:id
endpoint for updating a secret
secret.service.ts
Add `note` field to secret service
apps/api/src/secret/service/secret.service.ts
getDefaultEnvironmentOfProject
from@prisma/client
getDefaultEnvironmentOfProject
note
field to the object passed tocreateEvent
functionnote
field to the object passed tothis.prisma.secret.create
function
note
field to the object passed tothis.prisma.secret.update
function
create.variable.ts
Add `note` field to `CreateVariable` class
apps/api/src/variable/dto/create.variable/create.variable.ts
note
field toCreateVariable
classvariable.service.ts
Add `note` field to variable service
apps/api/src/variable/service/variable.service.ts
getDefaultEnvironmentOfProject
from@prisma/client
getDefaultEnvironmentOfProject
note
field to the object passed tocreateEvent
functionnote
field to the object passed tothis.prisma.variable.create
function
note
field to the object passed tothis.prisma.variable.update
function
variable.e2e.spec.ts
Add `note` field to variable endpoints
apps/api/src/variable/variable.e2e.spec.ts
note
field to the object passed to/variable
endpointnote
field in the response of/variable
endpoint
note
field to the object passed to/variable/:id
endpointnote
field in the response of/variable/:id
endpoint
note
field to the object passed to/variable/:id
endpoint forupdating a variable
note
field in the response of/variable/:id
endpoint for updating a variable
migration.sql
Add `note` column to `Secret` and `Variable` tables
apps/api/src/prisma/migrations/20240222062319_add_note_to_secret_and_variable/migration.sql
Secret
andVariable
tables to includea
note
columnschema.prisma
Add `note` field to `Secret` and `Variable` models
apps/api/src/prisma/schema.prisma
note
field to theSecret
modelnote
field to theVariable
model